<script type="text/javascript" src="/public/library/jquery/jquery.form.js"></script>
<script src="/public/library/hvn/place.js" type="text/javascript"></script>
<style type="text/css">
    div.children_wrapper
    {
    	padding: 10px 10px 10px 30px;
    	
    }
</style>
    
<script language="Javascript">
var mode = '<?=$this->mode?>';
$(function(){
	getAddress(mode);
    getCategoryType(mode);
});
</script>

<form id="form_id" accept-charset="UTF-8" action="<?= $this->escape($this->form->getAction()) ?>"
      method="<?= $this->escape($this->form->getMethod()) ?>">
<input type="hidden" name="clu_search" value="1"/>      

	<?=t(776) ?>:
	<?=$this->form->name ?>
	<br />
	<?=t(770) ?>:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<?=$this->form->city_id ?>
	<?=t(771) ?>:&nbsp;&nbsp;&nbsp;&nbsp;
	<?=$this->form->district_id ?>
	<br/>
		<?=t(782) ?>:&nbsp;&nbsp;
		<?=$this->form->category ?>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<?=t(816) ?>
		<?=$this->form->rtype ?>
		<br/>
	<div id="fieldset-category" >
		<table>
			<tr>
			<td id="sub-type"> </td>
			</tr>
		</table>
		<br/>
	</div>
	
	<?=t(764) ?>:
	<?=$this->form->fee ?>
	
	<?=t(18) ?>:
	<?=$this->form->to_fee ?>
	<br/>
	
	<?=t(763) ?>:&nbsp;&nbsp;&nbsp;
	<?=$this->form->fee_basis ?>
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	&nbsp;&nbsp;&nbsp;
	<?=t(780) ?>:
	<?=$this->form->fee_currency ?>
	<br/>
	
	<?=t(781) ?>:
	<?=$this->form->str_name ?>
	<br/>
	
	<?=t(783) ?>:
	<?=$this->form->str_number ?>
	<br/>
	
	<?=t(784) ?>:&nbsp;&nbsp;&nbsp;
	<?=$this->form->built_year ?>
	
	<?=t(18) ?>
	<?=$this->form->to_built_year ?>
	<br/><br/>
	
	<?=t(785) ?>:
	<?=$this->form->payment_method ?>
	<br/>
	
	<?=t(757) ?>:
	<?=$this->form->meals ?>
	<br/>
	
	<?=t(759) ?>:
	<?=$this->form->delivery ?>
	<br/>
	
	
	<?=t(786) ?>:&nbsp;&nbsp;
	<?=$this->form->place_perpage ?>
	<br/>
	<?=t(626) ?>: <?=$this->form->orderBy ?> <?=$this->form->asc_or_desc ?>
	<br/>
	
	<?if(!empty($this->form->getArticle)) :?>
	<?=t(523) ?>:&nbsp;&nbsp;&nbsp;&nbsp;
	<?=$this->form->getArticle ?>
	&nbsp;&nbsp;
	<?=t(405) ?>:&nbsp;&nbsp;
	<?=$this->form->user_id ?>
	<br/>
	
	<?=t(2) ?>:&nbsp;&nbsp;
	<?=$this->form->status ?>
	<br/>
	<?endif?>	
	<?=$this->form->submit ?>
   
<?if($this->mode == "search"):?>
	<script type="text/javascript">
		
		$(function() {
			if($("select#rtype").val() !== 0)
			{
				alert($("select#rtype").val());
				$("select#rtype").val(</?=$this->rtype;?>);
				$("select#rtype").trigger("change");
			}
		});

		function populate_category_checkboxes()
		{
			<?if($this->type != null):?>
				<?foreach ($this->type as $t) :?>
					$("input:checkbox[name=type[]]").filter("[value=<?=$t;?>]").trigger("click");
					if ($(".parent_category_checkbox").is(':checked'))
					{
						$(".parent_category_checkbox").siblings("div.children_wrapper").show();
					}
					else
					{
						$(".parent_category_checkbox").siblings("div.children_wrapper").hide();
					}
					
				<?endforeach?>
			<?endif?>
		}
	</script>
<?endif?>

</form>      
